package com.ktjiaoyu.crm.pojo;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

/**
 * sys_user
 * @author 
 */
@Data
@NoArgsConstructor
@RequiredArgsConstructor
@AllArgsConstructor
@TableName("sys_user")
public class User implements Serializable {
    /**
     * 编号
     */
    @TableId(type = IdType.AUTO)
    private Long usrId;

    /**
     * 姓名
     */
    @NonNull
    private String usrName;

    /**
     * 密码
     */
    @NonNull
    private String usrPassword;

    /**
     * 角色编号
     */
    @NonNull
    private Long usrRoleId;

    /**
     * 状态
     */
    @NonNull
    private Integer usrFlag;

    private static final long serialVersionUID = 1L;

    public User(String usrName) {
        this.usrName = usrName;
    }


}